package com.internetCafes.spms.web.sys.entity.vo.qualiconf;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 资质列表获取返回参数
 *
 * @author Zj 2021/6/11
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QualiListVo {

    @ApiModelProperty(value = "资质编码", position = 1)
    private String code;

    @ApiModelProperty(value = "资质名称", position = 1)
    private String name;

    @ApiModelProperty(value = "资质等级列表", position = 2)
    private List<Level> levels = new ArrayList<>();

    @ApiModel
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Level{
        /**
         * 等级序号
         */
        @ApiModelProperty(value = "等级序号", position = 1)
        private Integer num;

        /**
         * 等级名称
         */
        @ApiModelProperty(value = "等级名称", position = 1)
        private String level;
    }
}
